package com.uwantsoft.business.service.domain.park.search;

import com.uwantsoft.business.service.domain.park.ParkStatus;

import java.math.BigDecimal;

/**
 * Created by Zhang Hui on 2015/5/11.
 */
public class SearchedPark implements Comparable<SearchedPark>{
    private String guid;
    private ParkStatus status;
    private BigDecimal score;

    public boolean needAskGuard() {
        return false;
    }

    public ParkStatus status() {
        return null;
    }

    public String getGuid() {
        return guid;
    }

    public void timeout() {
        status = ParkStatus.WAITING;
    }

    public ParkStatus getStatus() {
        return status;
    }

    public BigDecimal getScore() {
        return score;
    }

    @Override
    public int compareTo(SearchedPark parkB) {
        return this.getScore().compareTo(parkB.getScore());
    }
}
